//
//  JLHomeLabel.m
//  LIangeNews
//
//  Created by sun on 16/1/14.
//  Copyright © 2016年 sun. All rights reserved.
//

#import "JLHomeLabel.h"

@implementation JLHomeLabel
-(instancetype)initWithFrame:(CGRect)frame{
    
    if (self = [super initWithFrame:frame]) {
        self.textAlignment = NSTextAlignmentCenter;
        self.font = [UIFont systemFontOfSize:20];
        self.userInteractionEnabled = YES;
        self.scale = 0;
    }
    return self;
}
-(void)setScale:(CGFloat)scale{
    _scale = scale;
    CGFloat minWHscale = 0.6;
    CGFloat WHscale = minWHscale + scale * (1 - minWHscale);
    self.textColor = [UIColor colorWithRed:scale green:0 blue:0 alpha:1.0];
    self.transform = CGAffineTransformMakeScale(WHscale, WHscale);
}
@end
